package com.rogue.blog.service.image;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

/**
 * Created by 86101 on 2018-09-26.
 */
public interface ImageUploadService {
    /**上传图片
     * @param multipartFile
     * @return
     * @throws IOException
     */
    String uploadImage(MultipartFile multipartFile) throws IOException;

    /**
     * 加载图片
     * @param path
     * @return
     */
    File getImage(String path);
}
